home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #9 / K-CD-9-2002.ISO / JASC After Shot / af100evp.exe / Data1.cab / single.xsl29 < prev    next >
Encoding:
Extensible Markup Language  |  2002-02-11  |  6.5 KB  |  144 lines

  1. <?xml version="1.0"?>
  2. <!-- Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. -->
  3. <!-- All rights reserved. -->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  5.     <xsl:template match="/">
  6.         <HTML>
  7.             <xsl:apply-templates/>
  8.         </HTML>
  9.     </xsl:template>
  10.     <xsl:template match="photos">
  11.         <xsl:apply-templates/>
  12.     </xsl:template>
  13.     <xsl:template match="album">
  14.         <xsl:apply-templates select="imagelist"/>
  15.     </xsl:template>
  16.     <xsl:template match="imagelist">
  17.         <xsl:apply-templates select="imageinfo"/>
  18.     </xsl:template>
  19.     <xsl:template match="imageinfo">
  20.         <xsl:element name="ixfile">
  21.             <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  22. <head>
  23.         
  24.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  25.         <meta name="copyright" content="Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. All rights reserved."/>
  26.         
  27.     </head>
  28.             
  29. <body bgcolor="#FFFFFF" text="#336633">
  30. <table width="800" border="2" bordercolor="#996600" align="center"  background="graphics/woodboard.jpg"><tr><td><br kludge=""/><table border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#996600"  background="">
  31. <tr><td><table border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFCC" background="">
  32.                         <tr>
  33.                             <td background="borders/tleft.gif"><br kludge=""/></td>
  34.                             <td height="20" background="borders/top.gif"><br kludge=""/></td>
  35.                             <td background="borders/tright.gif"><br kludge=""/></td>
  36.                         </tr>
  37.                         <tr>
  38.                             <td width="20" background="borders/left.gif"><br kludge=""/></td>
  39.                             <td><IMG border="0"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  40.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  41.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></td>
  42.                             <td width="20" background="borders/right.gif"><br kludge=""/></td>
  43.                         </tr>
  44.                         <tr>
  45.                             <td background="borders/bleft.gif"><br kludge=""/></td>
  46.                             <td height="20" background="borders/bottom.gif"><br kludge=""/></td>
  47.                             <td background="borders/bright.gif"><br kludge=""/></td>
  48.                         </tr>
  49.                     </table></td></tr>
  50. </table>
  51.  
  52. <br kludge=""/>
  53.  
  54. <table border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#996600" width="350" height="50" background="">
  55. <tr><td><table border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#ffffff" background="">
  56.                         <tr>
  57.                             <td background="borders/tleft.gif"><br kludge=""/></td>
  58.                             <td colspan="3" height="20" background="borders/top.gif"><br kludge=""/></td>
  59.                             <td background="borders/tright.gif"><br kludge=""/></td>
  60.                         </tr>
  61.                         <tr>
  62.                             <td width="20" background="borders/left.gif"><br kludge=""/></td>
  63.                             <td width="54" valign="top"><br kludge=""/><xsl:apply-templates select="previous"/></td>
  64.                             <td width="200"><div align="center"><table width="200" border="0" cellspacing="0" cellpadding="0" background="">
  65.                 <tr> 
  66.                   <td width="21"><xsl:choose>
  67.                                                             <xsl:when test="audio_info/@fname[. != '']">
  68.                                                                 <div align="center"><xsl:apply-templates select="audio_info"/></div>
  69.                                                             </xsl:when>
  70.                                                             <xsl:otherwise>
  71.                                                                 <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  72.                                                             </xsl:otherwise>
  73.                                                         </xsl:choose></td>
  74.                   <td valign="top"><div align="center"><font face="Arial, Helvetica, sans-serif" size="4" ><b><xsl:value-of select="title"/></b></font></div></td>
  75.                   <td width="21"><xsl:choose>
  76.                                                     <xsl:when test="movie_info/@fname[. != '']">
  77.                                                         <div align="center"><xsl:apply-templates select="movie_info"/></div>
  78.                                                     </xsl:when>
  79.                                                     <xsl:otherwise>
  80.                                                         <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  81.                                                     </xsl:otherwise>
  82.                                                 </xsl:choose></td>
  83.                 </tr>
  84.                 <tr> 
  85.                   <td colspan="3"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2" ><xsl:apply-templates select="description">
  86.                                             <!-- recursively apply this template to them -->
  87.                                             <xsl:template>
  88.                                                 <xsl:copy>
  89.                                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  90.                                                 </xsl:copy>
  91.                                             </xsl:template>
  92.                                         </xsl:apply-templates></font></div></td>
  93.                 </tr>
  94.               </table></div></td>
  95.                             <td width="54" valign="top"><br kludge=""/><xsl:apply-templates select="next"/></td>
  96.                             <td width="20" background="borders/right.gif"><br kludge=""/></td>
  97.                         </tr>
  98.                         <tr>
  99.                             <td background="borders/bleft.gif"><br kludge=""/></td>
  100.                             <td colspan="3" height="20" background="borders/bottom.gif"><br kludge=""/></td>
  101.                             <td background="borders/bright.gif"><br kludge=""/></td>
  102.                         </tr>
  103.                     </table></td></tr>
  104. </table><br kludge=""/></td></tr></table>
  105. </body>
  106.         </xsl:element>
  107.     </xsl:template>
  108.     <xsl:template match="audio_info">
  109.         <xsl:if match="audio_info[@fname != '']">
  110.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  111.                 <img border="0" src="graphics/sound.gif"/></A>
  112.         </xsl:if>
  113.     </xsl:template>
  114.     <xsl:template match="movie_info">
  115.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  116.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  117.     </xsl:template>    <xsl:template match="previous">
  118.         <xsl:value-of/>
  119.         <xsl:choose>
  120.             <xsl:when match="previous[@fname != '']">
  121.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  122.                     <img src="buttons/back3.gif" width="54" height="19" border="0"/></A>
  123.             </xsl:when>
  124.             <xsl:otherwise>
  125.                 <img src="buttons/back3.gif" width="54" height="19" border="0"/>
  126.                 
  127.             </xsl:otherwise>
  128.         </xsl:choose>
  129.     </xsl:template>
  130.     <xsl:template match="next">
  131.         <xsl:value-of/>
  132.         <xsl:choose>
  133.             <xsl:when match="next[@fname != '']">
  134.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  135.                     <img src="buttons/forward3.gif" width="54" height="19" border="0"/></A>
  136.             </xsl:when>
  137.             <xsl:otherwise>
  138.                 <img src="buttons/forward3.gif" width="54" height="19" border="0"/>
  139.             </xsl:otherwise>
  140.         </xsl:choose>
  141.     </xsl:template>
  142. </xsl:stylesheet>
  143.  
  144.